<?php /*a:3:{s:66:"/www/wwwroot/pay.rym.best/application/seller/view/login/index.html";i:1563242554;s:68:"/www/wwwroot/pay.rym.best/application/seller/view/common/head_s.html";i:1563242550;s:68:"/www/wwwroot/pay.rym.best/application/seller/view/common/footer.html";i:1563242550;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo htmlentities($title); ?>-<?php echo htmlentities($sys['name']); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="<?php echo htmlentities($sys['key']); ?>">
    <meta name="description" content="<?php echo htmlentities($sys['des']); ?>">
    <link rel="shortcut icon" href="/favicon.ico"/>  
    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="/static/user/css/main.css">
    <link rel="stylesheet" href="/static/common/css/font.css" media="all">
</head>

<body> 
<div class="rl_main">
<div class="log_box box_pan layui-clear">  
    <div class="log_logo"><img src="<?php echo htmlentities($sys['logo']); ?>" alt="<?php echo htmlentities($sys['name']); ?>"></div>
    <form method="post" class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <input type="text" id="username" name="username" required lay-verify="required|phone" placeholder="请输入手机号" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-item"> 
            <input type="password" id="L_pass" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
        <?php if($sys['code']=='open'): ?>
        <div class="layui-form-item">
            <input type="text" id="L_vercode" name="vercode" required lay-verify="required" placeholder="验证码" autocomplete="off" class="layui-input">
            <div class="rtip"><img src="<?php echo url('verify'); ?>" alt="captcha" onclick="this.src='<?php echo url("verify"); ?>?'+'id='+Math.random()"/></div>
        </div>
        <?php endif; ?>
        <div class="layui-form-item"><button type="submit" class="layui-btn layui-btn-fluid layui-btn-warm" lay-filter="logsub" lay-submit>立即登录</button></div>
        <div style="width: 100%; text-align: center;"><a href="<?php echo url('/user/index/index'); ?>">码商登录</a></div>
    </form>
</div>
</div> 
<div id="footer">
    <p>2018 &copy; <a href="<?php echo htmlentities($sys['url']); ?>"><?php echo htmlentities($sys['name']); ?></a></p>
</div>
<script src="/static/plugins/layui/layui.js"></script>



<script>
    layui.use(['form', 'layer'], function () {
        var form = layui.form,$ = layui.jquery;
        // 登录提交监听
        form.on('submit(logsub)', function (data) {
            var loading = layer.load(1, {shade: [0.1, '#fff']});
            $.post("<?php echo url('index'); ?>",data.field,function(res){
                layer.close(loading);
                if(res.code===1){
                    layer.msg(res.msg,{time:1000,icon:1},function(){
                        location.href = "<?php echo url('index/index'); ?>";
                    });
                }else{
                    layer.msg(res.msg,{time:1000,icon:2});
                    $('.rtip img').attr('src','<?php echo url("verify"); ?>?id='+Math.random());
                }
            });
            return false;
        })
    })
</script>
</body>
</html>
